package kr.co.m2soft.model.document
{
	import kr.co.m2soft.model.BaseModel;
	import kr.co.m2soft.model.IBaseModelParser;

	public class MML extends BaseModel implements IBaseModelParser
	{
		private var _head:Head;
		private var _body:Body;
		
		public function MML()
		{
			
		}
		
		public function parser():void
		{
			//this.hasOwnProperty(
			if(dataProvider.HEAD){
				_head = new Head();
				_head.dataProvider = dataProvider.HEAD;
				_head.parser();
			}
			if(dataProvider.BODY){
				
				_body = new Body();
				_body.dataProvider = dataProvider.BODY;
				_body.parser();
				
			}
		}
		
		public function get head():Head
		{
			return _head;
		}

		public function set head(value:Head):void
		{
			_head = value;
		}

		public function get body():Body
		{
			return _body;
		}

		public function set body(value:Body):void
		{
			_body = value;
		}


	}
}